import router from "./routers"

router.beforeEach((to, from, next) => {
  if (to.meta.title) {
    document.title = to.meta.title + ' - ' + 'gzm'
  }

  if(to.path === '/'){
    next('/login')
  }
  next()
})
